/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.qsoft.bean;

/**
 *
 * @author Jonathan
 */
import java.io.IOException;
import java.io.OutputStream;
import java.io.Serializable;
import java.util.ArrayList;
 
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
 
import org.richfaces.event.FileUploadEvent;
import org.richfaces.model.UploadedFile;
 
/**
 * @author Ilya Shaikovsky
 */
@ManagedBean
@SessionScoped
public class fileUploadBean implements Serializable{
  // private ArrayList<UploadedImage> files = new ArrayList<UploadedImage>();
 
    
 
    public void listener(FileUploadEvent event) throws Exception {
        UploadedFile item = event.getUploadedFile();
        String a="1";
       /* UploadedImage file = new UploadedImage();
        file.setLength(item.getData().length);
        file.setName(item.getName());
        file.setData(item.getData());
        
        files.add(file);*/
    }
 
   
 
    public long getTimeStamp() {
        return System.currentTimeMillis();
    }
 

}
